]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Always destroy banners when done displaying
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 11 Mar 2015 16:25:25 +0000 (17:25 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 17 Mar 2015 14:48:37 +0000 (15:48 +0100)
Special-casing banners of resident notifications was really a
thinly veiled special case for chat notifications, as those were
still using the old notification actor which coupled the life-time
of the notification to its actor. This is no longer the case, so
we can do the sane thing and destroy banners once they are no
longer needed.

https://bugzilla.gnome.org/show_bug.cgi?id=746343

js/ui/messageTray.js

index 4d7d93518253873818166b104d84e08e18162eab..b69492b05c4368807ac27b07ea137ba88c7ab73b 100644 (file)
@@ -2091,10 +2091,7 @@ const MessageTray = new Lang.Class({
         this._pointerInNotification = false;
         this._notificationRemoved = false;
 
-        if (notification.resident)
-            this._bannerBin.remove_actor(this._banner.actor);
-        else
-            this._banner.actor.destroy();
+        this._banner.actor.destroy();
         this._banner = null;
         this.actor.hide();
     },